/*
 * Esta classe define um form-bean com informações sobre uma oferta.
 */
package br.unirio.bsi.dsw.AuctionSite.beans;

import java.util.ArrayList;
import org.apache.struts.action.ActionForm;

// HAS-A Relationship
public class ofertaForm extends ActionForm
{    
  public static final String OPERATION_INSERT = "save";
  public static final String OPERATION_BID = "bid";
  public static final String OPERATION_BUYOUT = "buyout";  
  
  // operação a realizar
  private String operation;
  
  // pagina da scroll
  private String selectedPage;
  
  // indica qual album esta selecionado
  private String selectedAlbum;

  // indica qual estilo esta selecionado
  private String selectedEstilo;
  
  // indica qual artista esta selecionado
  private String selectedArtista;
  
  // indica qual oferta esta selecionada
  private String selectedOferta;
  
  // indica qual artista esta selecionado
  private String newBid; 

  // indica novo valor de buyout
  private String newBuyout; 
  
  // indica duraçao da oferta
  private String offerDuration; 

  // indica string de busca
  private String search; 
    
  // lista de ofertas
  private ArrayList<formBeanO> Offers = new ArrayList<formBeanO>();
    
  //
  // getters & setters
  //
  public String getSearch() {
    return search;
  }

  public void setSearch(String search) {
    this.search = search;
  }
  
  public String getSelectedArtista() {
    return selectedArtista;
  }

  public void setSelectedArtista(String selectedArtista) {
    this.selectedArtista = selectedArtista;
  }

  public String getSelectedEstilo() {
    return selectedEstilo;
  }

  public void setSelectedEstilo(String selectedEstilo) {
    this.selectedEstilo = selectedEstilo;
  }

  public String getOperation() {
    return operation;
  }

  public void setOperation(String operation) {
    this.operation = operation;
  }
  
  public ArrayList<formBeanO> getOffers() {
    return Offers;
  }

  public void setOffers(ArrayList<formBeanO> Offers) {
    this.Offers = Offers;
  }

  public String getNewBid() {
    return newBid;
  }

  public void setNewBid(String newBid) {
    this.newBid = newBid;
  }

  public String getNewBuyout() {
    return newBuyout;
  }

  public void setNewBuyout(String newBuyout) {
    this.newBuyout = newBuyout;
  }

  public String getOfferDuration() {
    return offerDuration;
  }

  public void setOfferDuration(String offerDuration) {
    this.offerDuration = offerDuration;
  }

  public String getSelectedAlbum() {
    return selectedAlbum;
  }

  public void setSelectedAlbum(String selectedAlbum) {
    this.selectedAlbum = selectedAlbum;
  }

  public String getSelectedOferta() {
    return selectedOferta;
  }

  public void setSelectedOferta(String selectedOferta) {
    this.selectedOferta = selectedOferta;
  }

  public String getSelectedPage() {
    return selectedPage;
  }

  public void setSelectedPage(String selectedPage) {
    this.selectedPage = selectedPage;
  }
}
